package com.命令模式;


/**
 * @author Fang Ruichuan
 * @date 2022-12-26 13:01
 */
public class ConcreteCommand implements ICommand {
    private final Receiver receiver;

    public ConcreteCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        receiver.action();
    }
}
